package com.xjrsoft.module.customer.erp_model.salesOrder.service;

import com.xjrsoft.module.customer.erp_model.salesOrder.entity.ErpSalesorder;
import com.xjrsoft.module.customer.erp_model.salesOrder.entity.ErpSalesorderentry;
import com.xjrsoft.module.customer.erp_model.salesOrder.dto.ErpSalesorderListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xjrsoft.common.page.PageOutput;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjrsoft.module.customer.erp_model.salesOrder.entity.Inventoryinfo;

import javax.swing.text.html.parser.Entity;

/**
 *  服务类
 *
 * @author pp
 * @since 2021-09-26
 */
public interface IErpSalesorderService extends IService<ErpSalesorder> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<ErpSalesorder> getPageList(ErpSalesorderListDto pageListDto);

	List<ErpSalesorderentry> getErpSalesorderentryByParentId(String parentId);
	String addErpSalesorder(ErpSalesorder erpSalesorder, List<ErpSalesorderentry> erpSalesorderentryList);

	boolean updateErpSalesorder(String id, ErpSalesorder erpSalesorder, List<ErpSalesorderentry> erpSalesorderentryList);

	List<Inventoryinfo> getWarehouseInfo(String goodsId, String WarehouseId);
}
